package com.loan.vo;

import com.loan.entity.Customer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: CustomerVO
 * @Author: DJY
 * @Date: 2022/1/19 14:41
 * Version 1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CustomerVO {
    @Valid
    private Customer customer;

    @NotNull(message = "页面不能为空")
    @Min(value = 1,message = "页码必须为正整数")
    private Integer pageNum;

}

